home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSHTMLImageElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  158 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSHTMLImageElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSHTMLImageElement_h__
  6. #define __gen_nsIDOMNSHTMLImageElement_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMNSHTMLImageElement */
  19. #define NS_IDOMNSHTMLIMAGEELEMENT_IID_STR "a6cf90c7-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMNSHTMLIMAGEELEMENT_IID \
  22.   {0xa6cf90c7, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMNSHTMLImageElement : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSHTMLIMAGEELEMENT_IID)
  29.  
  30.   /* attribute DOMString lowsrc; */
  31.   NS_IMETHOD GetLowsrc(nsAString & aLowsrc) = 0;
  32.   NS_IMETHOD SetLowsrc(const nsAString & aLowsrc) = 0;
  33.  
  34.   /* readonly attribute boolean complete; */
  35.   NS_IMETHOD GetComplete(PRBool *aComplete) = 0;
  36.  
  37.   /* readonly attribute long naturalHeight; */
  38.   NS_IMETHOD GetNaturalHeight(PRInt32 *aNaturalHeight) = 0;
  39.  
  40.   /* readonly attribute long naturalWidth; */
  41.   NS_IMETHOD GetNaturalWidth(PRInt32 *aNaturalWidth) = 0;
  42.  
  43.   /* readonly attribute long x; */
  44.   NS_IMETHOD GetX(PRInt32 *aX) = 0;
  45.  
  46.   /* readonly attribute long y; */
  47.   NS_IMETHOD GetY(PRInt32 *aY) = 0;
  48.  
  49. };
  50.  
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSIDOMNSHTMLIMAGEELEMENT \
  53.   NS_IMETHOD GetLowsrc(nsAString & aLowsrc); \
  54.   NS_IMETHOD SetLowsrc(const nsAString & aLowsrc); \
  55.   NS_IMETHOD GetComplete(PRBool *aComplete); \
  56.   NS_IMETHOD GetNaturalHeight(PRInt32 *aNaturalHeight); \
  57.   NS_IMETHOD GetNaturalWidth(PRInt32 *aNaturalWidth); \
  58.   NS_IMETHOD GetX(PRInt32 *aX); \
  59.   NS_IMETHOD GetY(PRInt32 *aY); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSIDOMNSHTMLIMAGEELEMENT(_to) \
  63.   NS_IMETHOD GetLowsrc(nsAString & aLowsrc) { return _to GetLowsrc(aLowsrc); } \
  64.   NS_IMETHOD SetLowsrc(const nsAString & aLowsrc) { return _to SetLowsrc(aLowsrc); } \
  65.   NS_IMETHOD GetComplete(PRBool *aComplete) { return _to GetComplete(aComplete); } \
  66.   NS_IMETHOD GetNaturalHeight(PRInt32 *aNaturalHeight) { return _to GetNaturalHeight(aNaturalHeight); } \
  67.   NS_IMETHOD GetNaturalWidth(PRInt32 *aNaturalWidth) { return _to GetNaturalWidth(aNaturalWidth); } \
  68.   NS_IMETHOD GetX(PRInt32 *aX) { return _to GetX(aX); } \
  69.   NS_IMETHOD GetY(PRInt32 *aY) { return _to GetY(aY); } 
  70.  
  71. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  72. #define NS_FORWARD_SAFE_NSIDOMNSHTMLIMAGEELEMENT(_to) \
  73.   NS_IMETHOD GetLowsrc(nsAString & aLowsrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLowsrc(aLowsrc); } \
  74.   NS_IMETHOD SetLowsrc(const nsAString & aLowsrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLowsrc(aLowsrc); } \
  75.   NS_IMETHOD GetComplete(PRBool *aComplete) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComplete(aComplete); } \
  76.   NS_IMETHOD GetNaturalHeight(PRInt32 *aNaturalHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNaturalHeight(aNaturalHeight); } \
  77.   NS_IMETHOD GetNaturalWidth(PRInt32 *aNaturalWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNaturalWidth(aNaturalWidth); } \
  78.   NS_IMETHOD GetX(PRInt32 *aX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX(aX); } \
  79.   NS_IMETHOD GetY(PRInt32 *aY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY(aY); } 
  80.  
  81. #if 0
  82. /* Use the code below as a template for the implementation class for this interface. */
  83.  
  84. /* Header file */
  85. class nsDOMNSHTMLImageElement : public nsIDOMNSHTMLImageElement
  86. {
  87. public:
  88.   NS_DECL_ISUPPORTS
  89.   NS_DECL_NSIDOMNSHTMLIMAGEELEMENT
  90.  
  91.   nsDOMNSHTMLImageElement();
  92.  
  93. private:
  94.   ~nsDOMNSHTMLImageElement();
  95.  
  96. protected:
  97.   /* additional members */
  98. };
  99.  
  100. /* Implementation file */
  101. NS_IMPL_ISUPPORTS1(nsDOMNSHTMLImageElement, nsIDOMNSHTMLImageElement)
  102.  
  103. nsDOMNSHTMLImageElement::nsDOMNSHTMLImageElement()
  104. {
  105.   /* member initializers and constructor code */
  106. }
  107.  
  108. nsDOMNSHTMLImageElement::~nsDOMNSHTMLImageElement()
  109. {
  110.   /* destructor code */
  111. }
  112.  
  113. /* attribute DOMString lowsrc; */
  114. NS_IMETHODIMP nsDOMNSHTMLImageElement::GetLowsrc(nsAString & aLowsrc)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118. NS_IMETHODIMP nsDOMNSHTMLImageElement::SetLowsrc(const nsAString & aLowsrc)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122.  
  123. /* readonly attribute boolean complete; */
  124. NS_IMETHODIMP nsDOMNSHTMLImageElement::GetComplete(PRBool *aComplete)
  125. {
  126.     return NS_ERROR_NOT_IMPLEMENTED;
  127. }
  128.  
  129. /* readonly attribute long naturalHeight; */
  130. NS_IMETHODIMP nsDOMNSHTMLImageElement::GetNaturalHeight(PRInt32 *aNaturalHeight)
  131. {
  132.     return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134.  
  135. /* readonly attribute long naturalWidth; */
  136. NS_IMETHODIMP nsDOMNSHTMLImageElement::GetNaturalWidth(PRInt32 *aNaturalWidth)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140.  
  141. /* readonly attribute long x; */
  142. NS_IMETHODIMP nsDOMNSHTMLImageElement::GetX(PRInt32 *aX)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146.  
  147. /* readonly attribute long y; */
  148. NS_IMETHODIMP nsDOMNSHTMLImageElement::GetY(PRInt32 *aY)
  149. {
  150.     return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152.  
  153. /* End of implementation class template. */
  154. #endif
  155.  
  156.  
  157. #endif /* __gen_nsIDOMNSHTMLImageElement_h__ */
  158.